package com.sinosoft.ptas.entity;

import java.io.Serializable;
import java.util.Date;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;
/**
 * 指标实体类
 * @author lianWuJun
 * @time   2017年2月18日 下午2:28:44
 */
public class IndexEntity implements Serializable{
	
	private static final long serialVersionUID = 1L;

	@Length(max = 36, message = "{index.id.maxLength}")
	private String id;//标识符
	
	@Length(max = 255, message = "{index.firstIndex.maxLength}")
	private String firstIndex;//一级指标
	
	@Length(max = 255, message = "{index.secondIndex.maxLength}")
	private String secondIndex;//二级指标
	
	@Length(max = 255, message = "{index.thirdIndex.maxLength}")
	private String thirdIndex;//三级指标
	
	@Length(max = 255, message = "{index.indexValue.maxLength}")
	private String indexValue;//指标值
	
	@NotBlank(message = "{index.targetsOfImplPhase.notText}")
	@Length(max = 36, message = "{index.targetsOfImplPhase.maxLength}")
	private String targetsOfImplPhase;//所属实施期目标ID
	
	@Length(max = 1, message = "{index.targetType.maxLength}")
	private String targetType;//目标类型（实施期目标：0，年度目标：1）
	
	@Length(max = 6, message = "{index.code.maxLength}")
	private String code;//指标编码
	
	private String referValue;
	
	private String creater;//创建人
	private Date createTime;//创建时间
	private String updator;//更新人
	private Date updateTime;//更新时间
	
	
	
	public String getReferValue() {
		return referValue;
	}
	public void setReferValue(String referValue) {
		this.referValue = referValue;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getFirstIndex() {
		return firstIndex;
	}
	public void setFirstIndex(String firstIndex) {
		this.firstIndex = firstIndex;
	}
	public String getSecondIndex() {
		return secondIndex;
	}
	public void setSecondIndex(String secondIndex) {
		this.secondIndex = secondIndex;
	}
	public String getThirdIndex() {
		return thirdIndex;
	}
	public void setThirdIndex(String thirdIndex) {
		this.thirdIndex = thirdIndex;
	}
	public String getIndexValue() {
		return indexValue;
	}
	public void setIndexValue(String indexValue) {
		this.indexValue = indexValue;
	}
	public String getTargetsOfImplPhase() {
		return targetsOfImplPhase;
	}
	public void setTargetsOfImplPhase(String targetsOfImplPhase) {
		this.targetsOfImplPhase = targetsOfImplPhase;
	}
	public String getCreater() {
		return creater;
	}
	public void setCreater(String creater) {
		this.creater = creater;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public String getUpdator() {
		return updator;
	}
	public void setUpdator(String updator) {
		this.updator = updator;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	public String getTargetType() {
		return targetType;
	}
	public void setTargetType(String targetType) {
		this.targetType = targetType;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	@Override
	public String toString() {
		return "IndexEntity [id=" + id + ", firstIndex=" + firstIndex
				+ ", secondIndex=" + secondIndex + ", thirdIndex=" + thirdIndex
				+ ", indexValue=" + indexValue + ", targetsOfImplPhase="
				+ targetsOfImplPhase + ", creater=" + creater + ", createTime="
				+ createTime + ", updator=" + updator + ", updateTime="
				+ updateTime + ", targetType=" + targetType + ", code=" + code
				+ "]";
	}
	
}
